package com.hdu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 课程收藏
 * </p>
 *
 * @author xiaobai
 * @since 2025-04-10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("collect_course")
public class CollectCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户标识
     */
    private Integer userId;

    /**
     * 课程发布标识
     */
    private Long coursePublishId;

    /**
     * 课程评分
     */
    private Float courseScore;

    /**
     * 学习状态
     */
    private String learnStatus;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
}
